package com.yyjj.hangqing.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yyjj.hangqing.R;
import com.yyjj.hangqing.entity.CacheEntity;

import java.util.List;

public class CacheAdatpter extends BaseQuickAdapter<CacheEntity, BaseViewHolder> {
    public CacheAdatpter() {
        super(R.layout.hq_cache_coin_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, CacheEntity item) {
        helper.setText(R.id.name, item.getName());
        helper.setText(R.id.code, item.getSymbol());
    }
}
